const http = require('http')
const axios = require('axios')

const app = http.createServer(async (request, response) => {
  const result = await axios({
    url: 'https://m.maoyan.com/ajax/moreClassicList?sortId=1&showType=3&limit=10&offset=30&optimus_uuid=A5518FF0AFEC11EAAB158D7AB0D05BBBD74C9789D9F649898982E6542C7DD479&optimus_risk_level=71&optimus_code=10'
  }).then(res => res.data)

  response.end(result)
})

app.listen(8080, () => console.log('localhost:8080'))